package com.hangwei.paperless.widget;

import android.graphics.Canvas;
import android.support.v4.content.ContextCompat;
import android.support.v7.widget.RecyclerView;

import com.chad.library.adapter.base.listener.OnItemSwipeListener;
import com.hangwei.paperless.R;

public class MyOnItemSwipeListener implements OnItemSwipeListener {
    @Override
    public void onItemSwipeStart(RecyclerView.ViewHolder viewHolder, int pos) {

    }

    @Override
    public void clearView(RecyclerView.ViewHolder viewHolder, int pos) {

    }

    @Override
    public void onItemSwiped(RecyclerView.ViewHolder viewHolder, int pos) {

    }

    @Override
    public void onItemSwipeMoving(Canvas canvas, RecyclerView.ViewHolder viewHolder, float dX, float dY, boolean isCurrentlyActive) {
       // canvas.drawColor(ContextCompat.getColor(viewHolder.itemView.getContext(), R.color.colorAccent));
    }
}
